<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');

// Create shortcuts to some parameters.
$params  = $this->item->params;
$images  = json_decode($this->item->images);
$urls    = json_decode($this->item->urls);
$canEdit = $params->get('access-edit');
$user    = JFactory::getUser();
$info    = $params->get('info_block_position', 0);
JHtml::_('behavior.caption');
$useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
	|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author'));

?>

<div class="container noticias">
	<h3>Últimas Notícias</h3>
	<div class="content">
		<?php  if (isset($images->image_fulltext) and !empty($images->image_fulltext)) : ?>
			<?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
			<div class="img-left">
				<img
				<?php if ($images->image_fulltext_caption):
					echo 'class="caption"'.' title="' .htmlspecialchars($images->image_fulltext_caption) .'"';
				endif; ?>
				src="<?php echo htmlspecialchars($images->image_fulltext); ?>" alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?>"/>
			</div>
		<?php endif; ?>
		
		<div>
			<?php if(isset($images->image_intro_caption)) :?>
				<h4><?php echo $images->image_intro_caption; ?></h4>
			<?php endif;?>
			<?php if(isset($this->item->title)) :?>
			<h2><?php echo $this->escape($this->item->title); ?></h2>
			<?php endif;?>
			<div class="c">
				<?php echo $this->item->event->beforeDisplayContent; ?>								
				<?php echo $this->item->fulltext; ?>				
				<?php echo $this->item->event->afterDisplayContent; ?>
			</div>
		</div>
	</div>
	
	<div class="btnback">
		<a href="#" title="Voltar à página anterior" ><img src="<?php echo JUri::base() ?>templates/cmmacae/img/btnBack.jpg" /></a>
	</div>
	
<?php

print_r($this->item);?>
</div>